package com.dunqi.gpm.cangxi.home.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.FrameLayout;

import com.dunqi.gpm.cangxi.R;
import com.dunqi.gpm.cangxi.common.base.BaseAct;
import com.dunqi.gpm.cangxi.common.view.ComTitleBar;
import com.dunqi.gpm.cangxi.home.fragment.ApprovalReviewFragment;

import butterknife.BindView;

public class ApprovalReviewActivity extends BaseAct {

    @BindView(R.id.title_bar)
    ComTitleBar titleBar;
    @BindView(R.id.container)
    FrameLayout container;
    private ApprovalReviewFragment fragment;

    @Override
    protected void refreshData(Bundle savedInstanceState) {

    }

    @Override
    protected void initUiAndListener() {
        fragment = ApprovalReviewFragment.newInstance();
        getSupportFragmentManager().beginTransaction()
                .add(R.id.container, fragment)
                .commit();
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        fragment.onActivityResult(requestCode, resultCode, data);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_audit_request;
    }


    public static void start(Context context) {
        Intent intent = new Intent(context, ApprovalReviewActivity.class);
        context.startActivity(intent);
    }

}
